//
//  HWGameDetailModel.swift
//  HWanGame
//
//  Created by 王昌健 on 2022/3/10.
//  Copyright © 2022 94Wan. All rights reserved.
//

import UIKit
import HandyJSON
class HWGameDetailModel: HandyJSON {
    required init() {}
    /// 安卓包名
    var android_package = ""
    /// 安卓下载链接
    var aurl = ""
    /// 标签
    var biaoqian:[String] = []
    var code = ""
    /// 优惠券数量
    var coupon_num = 0
    var fenxiang = ""
    /// ico
    var icon = ""
    /// ios下载链接
    var ios = ""
    var ios_bundle = ""
    /// ios plist
    var ios_plist = ""
    /// 礼包数量
    var lb_num = 0
    /// 最大优惠券
    var max_coupon = ""
    var message = ""
    /// 游戏名称
    var name = ""
    /// 评分
    var number = ""
    var paihang = ""
    /// 星级
    var point = 0.0
    /// 开服信息 直插最新一条
    var servers:HWGameDetailServersModel = HWGameDetailServersModel()
    var shoucang = 0
    /// 游戏收藏id
    var shoucang_id = ""
    /// 文件大小
    var size = ""
    /// 最小优惠券
    var small_coupon = ""
    var summary = ""
    /// 游戏分类
    var system = ""
    /// 游戏类型1手游 2h5 3页游
    var system_type = 0
    var tuijianzhishu = ""
    /// 类型
    var type = ""
    var uid = ""
    var zhekou = ""
    /// 群组信息
    var groupInfoModel:HWGameDetailGroupInfoModel = HWGameDetailGroupInfoModel()
    /// 本地是否存在次app
    var haveBundle = false
    
    var is_heng = ""
    var orderby = ""
    var follow = ""
}

class HWGameDetailServersModel: HandyJSON {
    required init() {}
    /// 0 没有开服信息  1有开服信息
    var code = ""
    var message = ""
    var data:[HWGameDetailServersDataModel] = []
}
class HWGameDetailServersDataModel:HandyJSON {
    required init() {}
    var create_time = ""
    var server_id = ""
    var server_name = ""
}
class HWGameDetailGroupInfoModel:HandyJSON {
    required init() {}
    var is_join = 0
    /// 群组名
    var name = ""
    var new_xiaoxi = ""
    var num = ""
    var url = ""
}


class HWGameDetailInfoModel:HandyJSON {
    required init() {}
    var cnlike:[HWGameDetailCnlikeModel] = []
    var code = ""
    var content = ""
    var fuli = ""
    var imgs:HWGameDetailImgsModel = HWGameDetailImgsModel()
    var message = ""
    var system_type = ""
    var type = ""
    var isOpen = false
    /// 评论列表
    var commentList:[HWGameDetailCommentListModel] = []
}

class HWGameDetailCnlikeModel:HandyJSON {
    required init() {}
    var icon = ""
    var id = ""
    var name = ""
}

class HWGameDetailImgsModel:HandyJSON {
    required init() {}
    var imgs:[String] = []
    var video:HWGameDetailVideoModel = HWGameDetailVideoModel()
}

class HWGameDetailVideoModel:HandyJSON {
    required init() {}
    var video_pic = ""
    var video_url = ""
}

class HWGameDetailCommentListModel:HandyJSON {
    required init() {}
    /// 评论id
    var id = ""
    /// 评论内容
    var content = ""
    /// 状态
    var status = 0
    /// 时间
    var time = ""
    /// 游戏id
    var gid = ""
    /// 用户id
    var uid = ""
    /// 点赞数量
    var zan = ""
    /// 暂时不用 踩的数量
    var cai = ""
    /// 暂时不用
    var jiajing = ""
    /// 被回复的评论id
    var pid = ""
    /// 所在的一级评论（在哪条主评论下面进行的回复））
    var ppid = ""
    /// 暂时不用
    var fujian = ""
    /// 星级
    var point = 0.0
    /// 视频
    var video = ""
    /// 图片
    var images:[String] = []
    /// 该评论用户名
    var user_name = ""
    /// 头像框
    var head_frame = ""
    /// 勋章
    var medal = ""
    /// 炫彩昵称
    var color:[String] = []
    var huiyuan_img = ""
    /// 该评论的用户头像
    var touxiang = ""
    /// 时间段 几小时前 几周前
    var timetran = ""
    /// 该用户是否点赞 1赞  0没有赞
    var is_zan = false
    /// 被回复的用户名
    var beihuifu_user_name = ""
    /// 被回复的用户头像
    var beihuifu_touxiang = ""
    /// 被回复的用户id
    var beihuifu_uid = ""
    /// 该评论下面的回复评论
    var son_list:[HWGameDetailCommentListModel] = []
    /// 应该是评论条数
    var num = ""
}

class HWGameDetailTagModel:HandyJSON {
    required init() {}
    var name = ""
    var type = ""
    var id = ""
    var status = false
}
